package com.bosssoft.hr.jobmonitor.controller;

import com.bosssoft.hr.jobmonitor.util.LoggerUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/***
 * @Author lys(cherish)
 * @Description  主页Controller
 * @Date  2019/2/26
 **/
@RestController
public class IndexController {

    private static final Logger logger= LoggerFactory.getLogger(IndexController.class);

    /***
     * @Author lys(cherish)
     * @Description 主页处理
     * @Date  2019/2/26
     * @Param []
     * @return org.springframework.web.servlet.ModelAndView
     **/
    @RequestMapping("/")
    public ModelAndView index(){
        logger.info(LoggerUtil.fmtLog("访问登入页面"));
        return new ModelAndView("login");
    }

}
